/**
 * Create by zhangpe0312@qq.com on 2018/2/7.
 */
public class test01 {
    public static void main(String[] args) {
        //有头像地址 avatarUrl  最后一个逗号和最后一个冒号之间的值avatarUrl
        String userInfo =
                "{\"nickName\":\"前进中不能少了记忆\",\"gender\":1,\"language\":" +
                        "\"zh_CN\",\"city\":\"\",\"province\":\"Chongqing\",\"" +
                        "country\":\"China\",\"avatarUrl\":" +
                        "\"https://wx.qlogo.cn/mmopen/vi_32/u48BE7h4IicCQiaeQ89pPZRiarFUfnTQXR4oXjaSBIlXombJCfHTTB3ibe19F0llScpeQQko8AJeLUYicVmYCpcuHJg/0\"}";
        //有真姓名 userName 最后一个逗号和最后一个冒号之间的值userName
        String chooseAddress =
                "{\"errMsg\":\"chooseAddress:ok\",\"userName\":\"张三\",\"nationalCode\":\"510000\"" +
                        ",\"telNumber\":\"020-81167888\",\"postalCode\":\"510000\",\"provinceName\":\"广东省\"" +
                        ",\"cityName\":\"广州市\",\"countyName\":\"海珠区\",\"detailInfo\":\"新港中路397号\"}";

        //openid 最后一个逗号和最后一个冒号之间的值openid
        String userLogin = "{\"session_key\":\"WgnrwpIGPZy7Wr2Tv4QA5g==\"" +
                ",\"openid\":\"ox0Ko5bva7pik1CL1JxlrjTDXkGg\"}";

        //对于几个字符串的判断是属于哪个种类的
        boolean index = userInfo.contains("avatarUrl");
        System.out.println("值为" + index);



    }
}
